<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Codeigniter uses this array to manage configurations matters
 *
 * Protoweb declare It's own $config entries for the templates and and plugins path.
 * This allows protoweb to have the flexibility to move this directories anytime
 *
 * @global array $GLOBALS['config']
 * @name $config
 */
$config['pw_root_path']                = dirname(BASEPATH) . '/';
$config['pw_app_path']                 = $config['pw_root_path'] . 'application/';
$config['pw_core_files_path']          = $config['pw_app_path'] . 'protoweb/';

$config['base_app_zip']                = $config['pw_core_files_path'] . 'protoweb_base_app.zip';

$config['plugins_path']                = $config['pw_root_path'] . 'plugins/';
$config['usr_templates_path']          = $config['pw_root_path'] . 'templates/';
$config['components_path']             = $config['pw_root_path'] . 'components/';
$config['containers_path']             = $config['pw_root_path'] . 'components/';

$config['purposes_path']               = $config['usr_templates_path'] . 'purposes/';
$config['usr_action_tpl_path']         = $config['usr_templates_path'] . 'actions/';

$config['generators_path']             = $config['pw_core_files_path'] . 'generators_templates/';
$config['project_model_template']      = $config['generators_path'] . 'project_model.tpl';
$config['project_controller_template'] = $config['generators_path'] . 'project_controller.tpl';
$config['model_template']              = $config['generators_path'] . 'model.tpl'; 
$config['custom_model_template']       = $config['generators_path'] . 'custom_model.tpl';
$config['controller_template']         = $config['generators_path'] . 'controller.tpl';
$config['custom_controller_template']  = $config['generators_path'] . 'custom_controller.tpl';
$config['view_generic_tpl']            = $config['generators_path'] . 'view_generic.tpl';
$config['view_create_tpl']             = $config['generators_path'] . 'view_create.tpl';
$config['view_update_tpl']             = $config['generators_path'] . 'view_update.tpl';
$config['view_read_tpl']               = $config['generators_path'] . 'view_read.tpl';

$config['core_templates_path']         = $config['pw_core_files_path'] . 'templates/';

$config['core_action_tpl_path']        = $config['core_templates_path'] . 'actions/';
$config['create_method_tpl']           = $config['core_action_tpl_path'] . 'create.tpl';
$config['update_method_tpl']           = $config['core_action_tpl_path'] . 'update.tpl';
$config['delete_method_tpl']           = $config['core_action_tpl_path'] . 'delete.tpl';
$config['read_method_tpl']             = $config['core_action_tpl_path'] . 'read.tpl';

/* End of file protoweb.php */
/* Location: ./application/config/protoweb.php */
